﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace MM.Model
{
    /// <summary>
    /// Rule
    /// </summary>
    public class Rules
    {

        /// <summary>
        /// Rule 构造函数
        /// </summary>
        public Rules()
        { }


        /// <summary>
        /// Rule OR映射构造函数
        /// </summary>
        public Rules(System.Data.IDataReader dr)
        {
            this.ID = Convert.ToInt32(dr["ID"]);
            this.ProvinceID = Convert.ToInt32(dr["ProvinceID"]);
            this.ONO = Convert.ToString(dr["ONO"]);
            this.CNO = Convert.ToString(dr["CNO"]);
            this.ChannelNO = Convert.ToString(dr["ChannelNO"]);
            this.SendCount = Convert.ToString(dr["SendCount"]);
            this.NextTime = Convert.ToString(dr["NextTime"]);
            this.TimeInterval = Convert.ToString(dr["TimeInterval"]);
            this.SendInterval = Convert.ToString(dr["SendInterval"]);
            this.Status = Convert.ToString(dr["Status"]);
            this.CreateTime = Convert.ToDateTime(dr["CreateTime"]);
        }


        /// <summary>
        /// 
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int ProvinceID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ONO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CNO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ChannelNO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string SendCount { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string NextTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string TimeInterval { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string SendInterval { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
